package com.lovo.project2.controller;

import com.lovo.project2.bean.TypeBean;
import com.lovo.project2.service.ITypeBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/type")
public class TypeBeanController {
    @Autowired
    ITypeBeanService iTypeBeanService;
@RequestMapping("query")
    public List<TypeBean> query(){
        return iTypeBeanService.queryAll();
    }
}
